<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      Ruby-2.7.0
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;13.&nbsp;Programming
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="python-modules.html" title=
          "Python Modules">Prev</a>
          <p>
            Python Modules
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="rust.html" title="Rustc-1.37.0">Next</a>
          <p>
            Rustc-1.37.0
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="prog.html" title=
          "Chapter&nbsp;13.&nbsp;Programming">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="ruby" name="ruby"></a>Ruby-2.7.0
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to Ruby
        </h2>
        <p>
          The <span class="application">Ruby</span> package contains the
          <span class="application">Ruby</span> development environment. This
          is useful for object-oriented scripting.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "http://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.0.tar.xz">http://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.0.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 22262b119bf22ebe6df363c5f1b68944
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 11 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 451 MB (add 214 MB for C API
                docs)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 1.7 SBU (using parallelism=4; add 4.8
                SBU for tests; add 0.5 SBU for C API docs)
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Ruby Dependencies
        </h3>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="../server/db.html" title=
          "Berkeley DB-5.3.28">Berkeley DB-5.3.28</a>, <a class="xref" href=
          "doxygen.html" title="Doxygen-1.8.17">Doxygen-1.8.17</a>, <a class=
          "xref" href="graphviz.html" title=
          "Graphviz-2.42.3">Graphviz-2.42.3</a>, <a class="xref" href=
          "libyaml.html" title="libyaml-0.2.2">libyaml-0.2.2</a>, <a class=
          "xref" href="tk.html" title="Tk-8.6.10">Tk-8.6.10</a>, <a class=
          "xref" href="valgrind.html" title=
          "Valgrind-3.15.0">Valgrind-3.15.0</a>, and <a class="ulink" href=
          "http://dtrace.org/blogs/about/">DTrace</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/ruby">http://wiki.linuxfromscratch.org/blfs/wiki/ruby</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of Ruby
        </h2>
        <p>
          Install <span class="application">Ruby</span> by running the
          following command:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr   \
            --enable-shared \
            --docdir=/usr/share/doc/ruby-2.7.0 &amp;&amp;
make</kbd>
</pre>
        <p>
          Optionally, build the CAPI documents by running the following
          commands:
        </p>
        <pre class="userinput">
<kbd class="command">make capi</kbd>
</pre>
        <p>
          To test the results, issue: <span class="command"><strong>make
          check</strong></span>. There are over 21,000 tests. Some tests
          related to ipv6 may indicate errors. If the tests are run in a
          directory that has a world writable component (e.g. /tmp) then
          several additional tests may fail. One test related to the time
          function may fail due to a change in expectations as a result of
          glibc-2.31.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>--enable-shared</code></em>: This
          switch enables building of the <code class=
          "filename">libruby</code> shared library.
        </p>
        <p>
          <code class="option">--disable-install-doc</code>: This switch
          disables building and installing rdoc indexes and C API documents.
        </p>
        <p>
          <code class="option">--disable-install-rdoc</code>: This switch
          disables building and installing rdoc indexes.
        </p>
        <p>
          <code class="option">--disable-install-capi</code>: This switch
          disables building and installing C API documents.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">bundle, bundler, erb, gem, irb, rake,
              rdoc, ri, and ruby</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">libruby.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/usr/include/ruby-2.7.0 /usr/lib/ruby,
              /usr/share/doc/ruby-2.7.0 and /usr/share/ri</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="bundle" name="bundle"></a><span class=
                    "term"><span class=
                    "command"><strong>bundle</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    creates bundles of Ruby Gems.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="bundler" name="bundler"></a><span class=
                    "term"><span class=
                    "command"><strong>bundler</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    manages an application's dependencies throughout it's
                    lifecycle.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="erb" name="erb"></a><span class=
                    "term"><span class="command"><strong>erb</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is Tiny eRuby. It interprets a <span class=
                    "application">Ruby</span> code embedded text file.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="gem" name="gem"></a><span class=
                    "term"><span class="command"><strong>gem</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    command for RubyGems - a sophisticated package manager
                    for <span class="application">Ruby</span>.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="irb" name="irb"></a><span class=
                    "term"><span class="command"><strong>irb</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is the interactive interface for <span class=
                    "application">Ruby</span>.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="rake" name="rake"></a><span class=
                    "term"><span class=
                    "command"><strong>rake</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    a make-like build utility for <span class=
                    "application">Ruby</span>.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="rdoc" name="rdoc"></a><span class=
                    "term"><span class=
                    "command"><strong>rdoc</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    generates <span class="application">Ruby</span>
                    documentation.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="ri" name="ri"></a><span class="term"><span class=
                    "command"><strong>ri</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    displays documentation from a database on <span class=
                    "application">Ruby</span> classes, modules, and methods.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="ruby-prog" name="ruby-prog"></a><span class=
                    "term"><span class=
                    "command"><strong>ruby</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is an interpreted scripting language for quick and easy
                    object-oriented programming.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libruby" name="libruby"></a><span class=
                    "term"><code class="filename">libruby.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains the API functions required by <span class=
                    "application">Ruby</span>.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-17 13:54:09 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="python-modules.html" title=
          "Python Modules">Prev</a>
          <p>
            Python Modules
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="rust.html" title="Rustc-1.37.0">Next</a>
          <p>
            Rustc-1.37.0
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="prog.html" title=
          "Chapter&nbsp;13.&nbsp;Programming">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
